package com.calm.singleton;

import android.util.Log;

public class LazySyncSingleton {
    private static final String TAG = LazySyncSingleton.class.getSimpleName();
    private LazySyncSingleton(){
        Log.e(TAG,"LazySyncSingleton init");
    }
    private static LazySyncSingleton INSTANCE;
    public static synchronized LazySyncSingleton getInstance(){
        if(INSTANCE == null){
            INSTANCE = new LazySyncSingleton();
        }
        return INSTANCE;
    }
    public void sayHello(String name){
        Log.e(TAG,"Hello "+name+",nice to meet you !");
    }
}
